package com.itheima.a01mymap;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class A04_MapDemo4 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<>();
        map.put("标枪选手","马超");
        map.put("任务挂件","明世隐");
        map.put("御龙骑士","尹志平");

        map.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String s, String s2) {
                System.out.println(s+" "+s2);
            }
        });
    }
}
